package com.os.lambda.chapter1;

@FunctionalInterface
interface IMath{
    public int add(int x, int y);
}
public class JavaDemo {
    public static void main(String[] args) {
        IMath math = (t1, t2)->{
            return t1 + t2;
        };
        System.out.println(math.add(1992, 2024));
    }
}
